package cn.fufeiii.bt.nomiddleware.print.controller;

import cn.fufeiii.bt.common.aspect.response.ResponseWrapper;
import cn.hutool.core.map.MapUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

/**
 * @author FuFei
 */
@Slf4j
@RestController
public class WrapperController {

    @ResponseWrapper
    @GetMapping("/server/test1")
    public Object print() throws IOException {
        return MapUtil.builder().put("k1", "v1").build();
    }

}
